package com.hskn.hss.module.kfkcarlocation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class KfkCarLocation implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 设备编号
     */
    private String eqpnum;

    /**
     * 1 在线 0 不在线
     */
    private String state;

    /**
     * 油量百分比
     */
    @TableField("oilMass")
    private Double oilmass;

    /**
     * 车辆总里程
     */
    private Double mileage;

    /**
     * 定位经纬度信息
     */
    private String location;

    /**
     * kafka时间
     */
    private Date timestamp;

    private String status;

    private String lat; //维度

    private String lon; //经度

    private String isstay;

    private Integer second;

    private Integer speed;

    private String direction;

    private String carnum;
    private String carid;
    private String cartype;
    private String cardeptid;

    /**
     * 设备上传时间
     */
    private Date deviceTime;

    /**
     * 创建时间
     */
    private Date createTime;

    public KfkCarLocation() {
    }

    public KfkCarLocation(String eqpnum, String state, Double oilmass, String location,
                          Date timestamp, String status, String lat, String lon, String isstay,
                          Integer second, Integer speed, String direction, String carnum,
                          String cartype, String cardeptid,Date deviceTime,Date createTime) {
        this.eqpnum = eqpnum;
        this.state = state;
        this.oilmass = oilmass;
        this.location = location;
        this.timestamp = timestamp;
        this.status = status;
        this.lat = lat;
        this.lon = lon;
        this.isstay = isstay;
        this.second = second;
        this.speed = speed;
        this.direction = direction;
        this.carnum = carnum;
        this.cartype = cartype;
        this.cardeptid = cardeptid;
        this.deviceTime = deviceTime;
        this.createTime = createTime;
    }
}
